<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>Aestate: aestate.ajson.ajson.AJson Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Aestate
   &#160;<span id="projectnumber">1.0.5</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div id="nav-path" class="navpath">
  <ul>
<li class="navelem"><a class="el" href="namespaceaestate.html">aestate</a></li><li class="navelem"><a class="el" href="namespaceaestate_1_1ajson.html">ajson</a></li><li class="navelem"><a class="el" href="namespaceaestate_1_1ajson_1_1ajson.html">ajson</a></li><li class="navelem"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json.html">AJson</a></li>  </ul>
</div>
</div><!-- top -->
<div class="header">
  <div class="summary">
<a href="#nested-classes">Classes</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="classaestate_1_1ajson_1_1ajson_1_1_a_json-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">aestate.ajson.ajson.AJson Class Reference</div>  </div>
</div><!--header-->
<div class="contents">
<div class="dynheader">
Inheritance diagram for aestate.ajson.ajson.AJson:</div>
<div class="dyncontent">
<div class="center"><img src="classaestate_1_1ajson_1_1ajson_1_1_a_json__inherit__graph.png" border="0" usemap="#aestate_8ajson_8ajson_8_a_json_inherit__map" alt="Inheritance graph"/></div>
<map name="aestate_8ajson_8ajson_8_a_json_inherit__map" id="aestate_8ajson_8ajson_8_a_json_inherit__map">
<area shape="rect" title=" " alt="" coords="13,145,203,281"/>
<area shape="rect" href="classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json.html" title=" " alt="" coords="5,5,211,97"/>
</map>
</div>
<div class="dynheader">
Collaboration diagram for aestate.ajson.ajson.AJson:</div>
<div class="dyncontent">
<div class="center"><img src="classaestate_1_1ajson_1_1ajson_1_1_a_json__coll__graph.png" border="0" usemap="#aestate_8ajson_8ajson_8_a_json_coll__map" alt="Collaboration graph"/></div>
<map name="aestate_8ajson_8ajson_8_a_json_coll__map" id="aestate_8ajson_8ajson_8_a_json_coll__map">
<area shape="rect" title=" " alt="" coords="13,145,203,281"/>
<area shape="rect" href="classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json.html" title=" " alt="" coords="5,5,211,97"/>
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json_1_1_json_date_encoder.html">JsonDateEncoder</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json_1_1_simplejson_date_encoder.html">SimplejsonDateEncoder</a></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:ab42885878e5eb3c5f9bb468398a8b7a5"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json.html#ab42885878e5eb3c5f9bb468398a8b7a5">date_encoder</a> (obj)</td></tr>
<tr class="separator:ab42885878e5eb3c5f9bb468398a8b7a5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a802551c3125886482ac7b41570fd09da"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json.html#a802551c3125886482ac7b41570fd09da">parse</a> (obj, ignore_name=None, bf=False, end_load=False)</td></tr>
<tr class="separator:a802551c3125886482ac7b41570fd09da"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a501c1ae7c4092a84b35ac8ee1bb0a276"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json.html#a501c1ae7c4092a84b35ac8ee1bb0a276">load</a> (item)</td></tr>
<tr class="separator:a501c1ae7c4092a84b35ac8ee1bb0a276"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0196fb4a98e83908edb4b9c81634fe38"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json.html#a0196fb4a98e83908edb4b9c81634fe38">beautiful</a> (_data)</td></tr>
<tr class="separator:a0196fb4a98e83908edb4b9c81634fe38"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45a135ef2b7a346948cb4aafa0d8a520"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1ajson_1_1_a_json.html#a45a135ef2b7a346948cb4aafa0d8a520">json_to_object</a> (json_data)</td></tr>
<tr class="separator:a45a135ef2b7a346948cb4aafa0d8a520"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="inherit_header pub_static_methods_classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json"><td colspan="2" onclick="javascript:toggleInherit('pub_static_methods_classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json')"><img src="closed.png" alt="-"/>&#160;Static Public Member Functions inherited from <a class="el" href="classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json.html">aestate.ajson.sim.JSON.Json</a></td></tr>
<tr class="memitem:a08452b7f5373ba1d1cfe7bd009ba3ef4 inherit pub_static_methods_classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json.html#a08452b7f5373ba1d1cfe7bd009ba3ef4">dumps</a> (obj, skipkeys=False, ensure_ascii=True, check_circular=True, allow_nan=True, cls=None, indent=None, separators=None, encoding='utf-8', default=None, use_decimal=True, namedtuple_as_object=True, tuple_as_array=True, bigint_as_string=False, sort_keys=False, item_sort_key=None, for_json=False, ignore_nan=False, int_as_string_bitcount=None, iterable_as_array=False, **kw)</td></tr>
<tr class="separator:a08452b7f5373ba1d1cfe7bd009ba3ef4 inherit pub_static_methods_classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:abfd3a17d639341453805eaaaeedb039b inherit pub_static_methods_classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json"><td class="memItemLeft" align="right" valign="top">def&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json.html#abfd3a17d639341453805eaaaeedb039b">loads</a> (s, encoding=None, cls=None, object_hook=None, parse_float=None, parse_int=None, parse_constant=None, object_pairs_hook=None, use_decimal=False, **kw)</td></tr>
<tr class="separator:abfd3a17d639341453805eaaaeedb039b inherit pub_static_methods_classaestate_1_1ajson_1_1sim_1_1_j_s_o_n_1_1_json"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><pre class="fragment">Json工具
AJson.parse(**kwargs):将任意对象解析成json字符串
AJson.load(**kwargs):将字符串解析成字典
</pre> 
<p class="definition">Definition at line <a class="el" href="ajson_8py_source.html#l00045">45</a> of file <a class="el" href="ajson_8py_source.html">ajson.py</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a id="a0196fb4a98e83908edb4b9c81634fe38"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0196fb4a98e83908edb4b9c81634fe38">&#9670;&nbsp;</a></span>beautiful()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.ajson.ajson.AJson.beautiful </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>_data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<pre class="fragment">作者:CACode 最后编辑于2021/4/27
美化json
</pre> 
<p class="definition">Definition at line <a class="el" href="ajson_8py_source.html#l00217">217</a> of file <a class="el" href="ajson_8py_source.html">ajson.py</a>.</p>

</div>
</div>
<a id="ab42885878e5eb3c5f9bb468398a8b7a5"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab42885878e5eb3c5f9bb468398a8b7a5">&#9670;&nbsp;</a></span>date_encoder()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.ajson.ajson.AJson.date_encoder </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>obj</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="ajson_8py_source.html#l00053">53</a> of file <a class="el" href="ajson_8py_source.html">ajson.py</a>.</p>

</div>
</div>
<a id="a45a135ef2b7a346948cb4aafa0d8a520"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45a135ef2b7a346948cb4aafa0d8a520">&#9670;&nbsp;</a></span>json_to_object()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.ajson.ajson.AJson.json_to_object </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>json_data</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">

<p class="definition">Definition at line <a class="el" href="ajson_8py_source.html#l00224">224</a> of file <a class="el" href="ajson_8py_source.html">ajson.py</a>.</p>

</div>
</div>
<a id="a501c1ae7c4092a84b35ac8ee1bb0a276"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a501c1ae7c4092a84b35ac8ee1bb0a276">&#9670;&nbsp;</a></span>load()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.ajson.ajson.AJson.load </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>item</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<pre class="fragment">作者:CACode 最后编辑于2021/4/27
将json字符串解析成字典
</pre> 
<p class="definition">Definition at line <a class="el" href="ajson_8py_source.html#l00189">189</a> of file <a class="el" href="ajson_8py_source.html">ajson.py</a>.</p>

</div>
</div>
<a id="a802551c3125886482ac7b41570fd09da"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a802551c3125886482ac7b41570fd09da">&#9670;&nbsp;</a></span>parse()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">def aestate.ajson.ajson.AJson.parse </td>
          <td>(</td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>obj</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>ignore_name</em> = <code>None</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>bf</em> = <code>False</code>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">&#160;</td>
          <td class="paramname"><em>end_load</em> = <code>False</code>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">static</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<pre class="fragment">作者:CACode 最后编辑于2021/4/27

将对象转换成字典格式:
    支持:
dict
list
object
list[object]
object[list]
object[list[object]]
.......

注意事项:

    bf和end_load同时只能使用一个

    当两者同时存在时,默认使用end_load功能


:param obj:需要解析的对象
:param ignore_name: 在对象中放入需要忽略的字段名
:param bf:是否需要美化json
:param end_load:是否需要在最后转成字典格式
</pre> 
<p class="definition">Definition at line <a class="el" href="ajson_8py_source.html#l00070">70</a> of file <a class="el" href="ajson_8py_source.html">ajson.py</a>.</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li>aestate/ajson/<a class="el" href="ajson_8py_source.html">ajson.py</a></li>
</ul>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.17
</small></address>
</body>
</html>
